﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GMap.aspx.cs" Inherits="SearchEngine.GMap" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1"><title>
        Thông tin địa điểm
</title>
<link rel="shortcut icon" href="/images/icon.ico">
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false
                &amp;key=abcdefg" type="text/javascript">
    </script>
  <link rel="stylesheet" type="text/css" href="CSS/Map.css"/>
  <script language="javascript" type="text/javascript">
      function Load() {
          var kinhdo = document.getElementById("kinhdo").value;
          var vido = document.getElementById("vido").value;
          initialize(kinhdo, vido);
      }
  </script>                 
</head>

<body onload="Load();" onunload="GUnload()">
<form name="form1" method="post" action="GMap.aspx" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJNjgwMzE1NjY0D2QWAgIDD2QWAgIBD2QWAgIBDxYCHgRUZXh0BcoJPHNjcmlwdCB0eXBlPSd0ZXh0L2phdmFzY3JpcHQnPg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uIGluaXRpYWxpemUoKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoR0Jyb3dzZXJJc0NvbXBhdGlibGUoKSkgew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgbWFwID0gbmV3IEdNYXAyKGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdtYXBfY2FudmFzJykpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXAuc2V0Q2VudGVyKG5ldyBHTGF0TG5nKDQ1LjA1LDcuNjY2NyksIDIpOyANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDQogbWFwLmFkZE92ZXJsYXkobmV3IEdNYXJrZXIobmV3IEdMYXRMbmcoMjQu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ddKFAYgfhZtP0yGuoW0ot" />
</div>

    <div id="Panel1">
       
               
                <script type='text/javascript'>
                            function initialize(kkd,vvd) {
                              if (GBrowserIsCompatible()) {
                                var map = new GMap2(document.getElementById('map_canvas'));
                                map.setCenter(new GLatLng(vvd, kkd), 16);
                                map.addOverlay(new GMarker(new GLatLng(vvd, kkd)));
                                GEvent.addListener(map, 'click', function(overlay, point) {
                                var latLngStr = document.getElementById("ten").value;
                                map.openInfoWindow(point, latLngStr);  
                                });
                                map.setUIToDefault();
                              }
                            }
                  </script>
                  
                <div id="ht">
                <div>
                <img src="images/logonew.png" width=100% />
                </div>
                
                <br><br><hr>
                    <asp:Label ID="LBHIENTHIKETQUA" runat="server" Text="Label"></asp:Label>
                    
                </div>
                <div id="map_canvas" style="height: 768px;">
                </div>
                <br />
           
</div>
        <br />
   </form>
   </body>

</html>

